<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class SeatRequest extends MineFormRequest
{
    public function buyRules()
    {
        return [
//            'type' => 'required|in:0,1',
            'package_id' => 'required',
            'num' => 'required|integer|min:1',
            'is_use_balance' => 'in:0,1',
            'corp_id' => 'required_if:type,1|numeric'
        ];
    }


    public function renewalRules()
    {
        return [
            'id' => 'required',
            'package_id' => 'required',
            'is_use_balance' => 'in:0,1'
        ];
    }

    public function autoSwitchRules()
    {
        return [
            'id' => 'required',
            'is_auto_renewal' => 'required|in:0,1'
        ];
    }

    public function payRules()
    {
        return [
            'order_no' => 'required',
            'pay_way' => 'required|in:0,1,2,3',
        ];
    }

    public function checkPayStatusRules()
    {
        return [
            'order_no' => 'required',
        ];
    }

    public function unbindRules(): array
    {
        return [
            'id' => 'required'
        ];
    }
}